package com.heima.wemedia.controller.v1;

import com.heima.wemedia.service.WmNewsAutoScanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private WmNewsAutoScanService wmNewsAutoScanService;

    @RequestMapping("/test/{id}")
    public String test(@PathVariable Integer id){

        wmNewsAutoScanService.autoScanWmNews(id);
        return "test";
    }
}
